Gimbal pose correction method and device

ABSTRACT

A gimbal pose correction method includes obtaining a first pose of a gimbal based on an Inertial Measurement Unit (IMU) arranged at a vertical compensation device configured to be coupled to the gimbal and compensate for movement of the gimbal in a vertical direction, obtaining a second pose of the vertical compensation device based on a vision device arranged at the vertical compensation device, and correcting the first pose according to the second pose.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of International Application No. PCT/CN2018/084499, filed on Apr. 25, 2018, the entire content of which is incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to the technical field of gimbal control and, more particularly, to a gimbal pose correction method and device.

BACKGROUND

Pose estimation is one of the key problems to be solved in robot control. The pose estimation refers to obtaining position, velocity, attitude, and heading information that satisfies requirements of control bandwidth, dynamic performance, stability, and accuracy according to data from various motion state sensors. A system providing instant pose information is called a navigation system. The navigation system generally includes an inertial navigation system, a global navigation satellite system (GNSS), a Doppler navigation system, a visual navigation system, and the like. Integrated navigation technology uses a plurality of different navigation systems to measure a same information source, extracts and corrects errors of each navigation system using measured values. Integrated navigation technology is one of the important applications in the field of multi-sensor information fusion state estimation.

Inertial-GNSS integrated navigation is one of the commonly used integrated navigations. Conventional inertial-GNSS integrated navigations use the north-east-down (NED) coordinate system as a navigation coordinate system, and hence need a north-pointing heading observation and generally use a geomagnetic sensor to provide a reference heading. However, the geomagnetic sensor is susceptible to interference from electric current and magnetic field. In addition, the conventional inertial-GNSS integrated navigations use latitude and longitude to represent the position, such that the GNSS needs to provide position measurement in the form of latitude and longitude. Therefore, the GNSS navigation cannot work in an indoor environment. Conventional single-point GNSS's generally have position and velocity measurement errors at m-level, but in some applications, the velocity control accuracy is needed to be mm-level, and hence, the inertial-GNSS integrated navigations cannot satisfy the accuracy requirements.

SUMMARY

In accordance with the disclosure, there is provided a gimbal pose correction method including obtaining a first pose of a gimbal based on an Inertial Measurement Unit (IMU) arranged at a vertical compensation device configured to be coupled to the gimbal and compensate for movement of the gimbal in a vertical direction, obtaining a second pose of the vertical compensation device based on a vision device arranged at the vertical compensation device, and correcting the first pose according to the second pose.

Also in accordance with the disclosure, there is provided a gimbal pose correction device including a vertical compensation device, and a vision device and an Inertial Measurement Unit (IMU) both arranged at and electrically coupled to the vertical compensation device. The vertical compensation device is configured to be connected to a gimbal and compensate for movement of the gimbal in a vertical direction. The vertical compensation device is further configured to obtain a first pose of the gimbal based on the IMU, obtain a second pose of the vertical compensation device based on the vision device, and correct the first pose according to the second pose.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to provide a clearer illustration of technical solutions of disclosed embodiments, the drawings used in the description of the disclosed embodiments are briefly described below. It will be appreciated that the disclosed drawings are merely examples and other drawings conceived by those having ordinary skills in the art on the basis of the described drawings without inventive efforts should fall within the scope of the present disclosure.

FIG. 1 is a schematic structural diagram of a gimbal pose correction device consistent with embodiments of the disclosure.

FIG. 2 is a schematic structural diagram of another gimbal pose correction device consistent with embodiments of the disclosure.

FIG. 3 is a schematic structural diagram of another gimbal pose correction device consistent with embodiments of the disclosure.

FIG. 4 is a schematic flow chart of a gimbal pose correction method consistent with embodiments of the disclosure.

FIG. 5 is a schematic flow chart of another gimbal pose correction method consistent with embodiments of the disclosure.

Description of Reference Numerals 1 Inertial measurement unit (IMU) 2 Vision device 3 Main body 31 Body 32 Base 33 Handheld member 4 Axis arm 5 Motor 6 Angular velocity sensor

DETAILED DESCRIPTION OF THE EMBODIMENTS

In order to provide a clearer illustration of technical solutions of disclosed embodiments, example embodiments will be described with reference to the accompanying drawings. It will be appreciated that the described embodiments are some rather than all of the embodiments of the present disclosure. Other embodiments conceived by those having ordinary skills in the art on the basis of the described embodiments without inventive efforts should fall within the scope of the present disclosure.

Hereinafter, the gimbal pose correction method and device consistent with the disclosure will be described in detail with reference to the accompanying drawings. Unless conflicting, the exemplary embodiments and features in the exemplary embodiments can be combined with each other.

FIG. 1 is a schematic structural diagram of an example gimbal pose correction device consistent with the disclosure. As shown in FIG. 1, a gimbal is connected to a vertical compensation device, and the vertical compensation device can compensate for a movement of the gimbal in a vertical direction. In some embodiments, the gimbal can be mounted on a movable object, e.g., a user, an unmanned aerial vehicle (UAV), or a robot, through the vertical compensation device. When the movable object moves, there is a movement in the vertical direction, and the movement in the vertical direction can result in unstable images of a camera on the gimbal. Therefore, the vertical compensation device can be used to compensate for the movement of the gimbal in the vertical direction. Compared with a situation that the gimbal is directly mounted on the movable object and moves with the movable object, the vertical movement of the gimbal can be reduced, thereby ensuring the smooth images of the camera.

The vertical compensation device includes a vision device 2 and an inertial measurement unit (IMU) 1. FIGS. 2 and 3 are schematic structural diagram of other examples of the gimbal pose correction device consistent with the disclosure. As shown in FIGS. 2 and 3, the vertical compensation device includes a main body 3 and an axis arm 4 connected to the gimbal. The axis arm 4 can rotate to compensate for the movement of the gimbal in the vertical direction. In some embodiments, a motor 5 is arranged at a main body 3, and the motor 5 can be configured to drive the axis arm 4 to rotate. In some other embodiments, the axis arm 4 can also be driven to rotate by other driving devices. The IMU 1 can be arranged at the axis arm 4, and the IMU 1 can be arranged at an end of the axis arm 4 connected to the gimbal. In some embodiments, the IMU 1 can be arranged at any other position of the axis arm 4.

The vision device 2 can be arranged at the main body 3, and a detection direction of the vision device 2 can be upward or downward. For example, when a gimbal pose correction system is located in an outdoor environment, the vision device 2 can face downward, and when the gimbal pose correction system is located indoors, the vision device 2 can face upward or downward. In some embodiments, the detection direction of the vision device 2 can be approximately parallel to the vertical direction, and the detection direction of the vision device 2 can have a small tilt angle relative to the vertical direction (an angle range of the tilt angle can be set according to empirical values). In some embodiments, the vision device 2 can monitor vertically upwards or vertically downwards. As shown in FIGS. 2 and 3, the main body 3 includes a body 31 and a base 32 fixedly connected to the body 31, and the vision device 2 is arranged at the base 32.

In some embodiments, the gimbal can be mounted at a UAV, a mobile robot, or another movable device through the base 32. During the movement of the UAV, mobile robot, or other movable devices, there is the movement in the vertical direction that affects the images of the camera (i.e., the camera on the gimbal). The vertical compensation device can compensate for the movement in the vertical direction to offset an influence of the movement in the vertical direction on the images of the camera.

In some embodiments, as shown in FIGS. 2 and 3, the vertical compensation device may include a handheld device, and the compensation device includes a handheld member 33 fixedly connected to the body 31. The user can hold the handheld member 33 to drive the vertical compensation device to move as a whole. When the user is walking, the movement in the vertical direction along with a stride frequency can affect the images of the camera, and the vertical compensation device can compensate for the vertical movement to offset the influence of the movement in the vertical direction on the images of the camera.

Hereinafter, a body coordinate system {b}-O_(b)x_(b)y_(b)z_(b) can be defined as follows. An origin of the coordinate system O_(b) can be a geometric center of a plane at which the axis arm 4 is connected to an end of the gimbal corresponding to an axis. x_(b) axis can be in a vertical symmetry plane of the body 31 and parallel to a bottom surface of the base 32, and can point forward. y_(b) axis can be perpendicular to the vertical symmetry plane of the body 31 and can point to a right side of the body 31. z_(b) axis can be in the vertical symmetry plane of the body 31 and perpendicular to the x_(b) axis, and can point below the body 31.

A base coordinate system {p}-O_(p)x_(p)y_(p)z_(p) of the base 20 can be defined as follows. An origin of the coordinate system O_(p) can be a center of the axis arm 4, i.e., an intersection of a rotation center line of the axis arm 4 and the vertical symmetry plane of the body 31. x_(p) axis can be in the vertical symmetry plane of the body 31 and parallel to the bottom surface of the base 32, and can point forward. y_(p) axis can be perpendicular to the vertical symmetry plane of the body 31 and can point to the right side of the body 31. z_(p) axis can be in the vertical symmetry plane of the body 31 and perpendicular to the x_(p) axis, and can point below the body 31.

A camera coordinate system can be denoted by {c}-O_(c)x_(c)y_(c)z_(c), and a navigation coordinate system can be denoted by {n}-O_(n)x_(n)y_(n)z_(n). An origin of the navigation coordinate system O_(n) can be determined by a vertical projection of an origin of the camera coordinate system O_(c) on the ground when the system starts to work. Coordinate axis of the navigation coordinate system can be determined by an output of the vision device 2. The vision device 2 can output a pose of the camera coordinate system {c} relative to the navigation coordinate system {n}. In some embodiments, the vision device 2 can output a reference position P_(nc) ^(n), a reference velocity V_(nc) ^(n), and a reference attitude q _(c) ^(n) of the vertical compensation device. In some other embodiments, the vision device 2 can output the reference position P_(nc) ^(n) and the reference velocity V_(nc) ^(n) of the vertical compensation device.

FIG. 4 is a schematic flow chart of an example gimbal pose correction method consistent with the disclosure. An execution entity of the method may include a processor of the vertical compensation device, or an independent control device communicatively connected to the processor of the vertical compensation device.

As shown in FIG. 4, at S401, a first pose of the gimbal is obtained based on the IMU 1. The first pose may include the velocity, position, and attitude of the gimbal.

The IMU 1 may include a gyroscope and an accelerometer. In some embodiments, the gyroscope can include a three-axis gyroscope, and the accelerometer can include a three-axis accelerometer. The process at S401 can include obtaining an angular velocity of the gimbal based on the gyroscope, obtaining a specific force of the gimbal based on the accelerometer, and then calculating the attitude, velocity, and position of the gimbal based on the angular velocity and the specific force.

In some embodiments, the method further includes updating the attitude of the gimbal. Updating the attitude of the gimbal can include designing an attitude update formula according to the angular velocity and the specific force, and updating the attitude of the gimbal according to the attitude update formula.

In some embodiments, a design process for the attitude update formula can be as follows. An ideal output of the gyroscope, denoted as ω_(ib) ^(b), can include a projection of a rotation angular rate of the body coordinate system {b} relative to an inertial system {i} in the {b} system, and an actual output of the gyroscope is denoted as ω _(ib) ^(b). An ideal output of the accelerometer, denoted as f^(b), can include a projection of the specific force in the {b} system, and the actual output of the accelerometer can be denoted as {tilde over (f)}^(b).

A quaternion q_(b) ^(n) can be used as a representation of the attitude of the {n} system relative to the {b} system, and an error-free ideal quaternion differential formula can be determined by the following formula: {dot over (q)} _(n) ^(b)=½ω_(nb) ^(b) ⊗q _(n) ^(b)=½Ω(ω_(nb) ^(b))q _(n) ^(b)  (1)

The attitude angular rate in Formula (1) can be determined by the following formula: ω_(nb) ^(b)=ω_(ib) ^(b)−ω_(in) ^(b)=ω_(ib) ^(b) −C _(n) ^(b)(ω_(ie) ^(n)+ω_(en) ^(n))  (2)

Formula (2) can be determined by a latest updated attitude value, ω_(ie) ^(n) and ω_(en) ^(n) are the earth's rotation angular rate and position angular rate. The method consistent with the disclosure is suitable for a moving shoot at a low-velocity and short-distance, and near the ground, such that ω_(ie) ^(n) and ω_(en) ^(n) can be approximately ignored, and thus, ω_(nb) ^(b)≈ω_(ib) ^(b). In an actual system, due to an existence of a gyroscope measurement error and a navigation solution error, an actual solution of the quaternion differential formula can be performed by the following formula: {circumflex over ({dot over (q)})} _(n) ^(b)=½{circumflex over (ω)}_(nb) ^(b) ⊗{circumflex over (q)} _(n) ^(b)≈½Ω({circumflex over (ω)}_(ib) ^(b))q _(n) ^(b)  (3)

An actual body coordinate system determined by {circumflex over (q)}_(b) ^(n) can be denoted as {b′}. Discretize the quaternion differential formula shown in Formula (1) and use the first-order approximation, the quaternion update formula shown below can be obtained: {circumflex over (q)} _(b) ^(n)(t _(k+1))={circumflex over (q)} _(b) ^(n)(t _(k))+½Ω({circumflex over (ω)}_(ib) ^(b)(t _(k+1)))Δt·{circumflex over (q)} _(b) ^(n)(t _(k))  (4)

According to Formula (4), an attitude matrix Ĉ_(n) ^(b) can be obtained by updating the attitude quaternion, which actually can establish a mathematical platform of strapdown inertial navigation.

In some embodiments, the method further includes updating the velocity of the gimbal. Updating the velocity of the gimbal can include designing a velocity update formula according to the angular velocity and the specific force, and updating the velocity of the gimbal according to the velocity update formula. For example, the following formula can be used as the approximate velocity update formula: {circumflex over (V)} ^(n)(t _(k+1))={circumflex over (V)} ^(n)(t _(k))+C _(b) ^(n) {circumflex over (f)} ^(b)(t _(k+1))·Δt  (5)

In some embodiments, the method further includes updating the position of the gimbal. Updating the position of the gimbal can include designing a position update formula according to the angular velocity and the specific force, and updating the position of the gimbal according to the position update formula. For example, the following formula can be used as the approximate position update formula: {circumflex over (P)} ^(n)(t _(k+1))={circumflex over (P)} ^(n)(t _(k))+{circumflex over (V)} ^(n)(t _(k+1))·Δt+½C _(b) ^(n) {circumflex over (f)} ^(b)(t _(k+1))·Δt ²  (6)

It can be appreciated that the attitude update formula, velocity update formula, and position update formula described above are merely examples, which are not limited herein.

At S402, a second pose of the vertical compensation device is obtained based on the vision device 2.

The vision device 2 may include a visual odometer or a visual inertial odometer. For example, the vision device 2 can include the visual odometer, and the second pose can include the velocity and position of the vertical compensation device. FIG. 5 is a schematic flow chart of another example gimbal pose correction method consistent with the disclosure. As another example, as shown in FIG. 5, the vision device 2 includes the visual inertial odometer (VIO), and the second pose can include the velocity, position, and attitude of the vertical compensation device.

In some embodiments, the vertical compensation device may further include a Time of Flight (TOF) measurement device. In some embodiments, a detection result of the vision device 2 can be corrected by a detection result of the TOF measurement device. For example, the vertical compensation device can obtain the position of the vertical compensation device through a detection of the TOF measurement device, and correct the position of the compensation device obtained by the vision device 2 to obtain an accurate position of the vertical compensation device.

In some embodiments, an Ultra-Wideband (UWB) positioning device can be used instead of the vision device 2, and the pose of the vertical compensation device can be measured by the UWB positioning device. An inertial-UWB integrated navigation method consistent with the disclosure is not interfered by electric current and magnetic field, and can be suitable for various indoor and outdoor environments.

Since the vision device 2 can be fixed on the base 32, the coordinate system of the reference velocity and position of the vertical compensation device directly output by the vision device 2 can be different from the coordinate system of the first pose. The reference velocity and reference position of the vertical compensation device directly output by the vision device 2 cannot be used as the reference of the first pose to correct the first pose. In some embodiments, coordinate conversion can be performed on the reference velocity and the reference position of the vertical compensation device directly output by the vision device 2 to obtain the second pose being in the same coordinate system as the first pose.

In some embodiments, an angular velocity sensor 6 can be arranged at the axis arm 4 and can be configured to obtain a joint angle of the axis arm 4. Before the process at S402, the method may further include obtaining the joint angle of the axis arm 4 based on the angular velocity sensor 6. In some other embodiments, the joint angle of the axis arm 4 can be determined based on a joint angle of the motor 5 that drives the axis arm 4 to rotate. A type of the angular velocity sensor 6 is not limited herein, and any suitable angular velocity sensor 6 can be selected.

In some embodiments, the process at S402 can further include, according to the joint angle, performing the coordinate conversion on the reference velocity of the vertical compensation device output by the vision device 2, obtaining the conversed velocity of the vertical compensation device, and correcting the velocity of the gimbal according to the conversed velocity of the vertical compensation device. In some embodiments, the process at S402 can further include, according to the joint angle, performing the coordinate conversion on the reference position of the vertical compensation device output by the vision device 2, obtaining the conversed position of the vertical compensation device, and correcting the position of the gimbal according to the conversed position of the vertical compensation device.

When the vision device 2 includes the visual inertial odometry, the process at S402 can further include constructing a reference direction cosine matrix of the reference attitude based on the reference attitude output by the visual inertial odometer, and according to the reference direction cosine matrix, obtaining the attitude of the vertical compensation device. Obtaining the attitude of the vertical compensation device according to the direction cosine matrix can include obtaining an attitude correction value of the vertical compensation device according to the reference direction cosine matrix, and obtaining the attitude of the vertical compensation device according to the attitude correction value. Therefore, the attitude of the gimbal can be corrected by the attitude of the vertical compensation device.

At S403, the first pose is corrected according to the second pose.

According to the second pose obtained at S402, the first pose obtained at S401 can be corrected to obtain a pose estimation value of the gimbal. The pose of the gimbal can be controlled according to the pose estimation value to ensure the accuracy of the gimbal pose. In some embodiments, for a three-axis (yaw axis, pitch axis, roll axis) gimbal, correcting the first pose or the gimbal pose can refer to correcting the pose of the gimbal in the direction of the yaw axis, pitch axis, and/or roll axis.

A loop feedback, an optimal estimation, or another algorithm may be used at S403 to fuse the first pose and the second pose to realize the inertial-visual integrated navigation. In some embodiments, a Kalman filter (an optimal estimation algorithm) can be used to fuse the first pose and the second pose. Hereinafter, an implementation process of fusing the first pose and the second pose using the Kalman filter will be described.

In some embodiments, the process at S401 can further include obtaining the angular velocity of the gimbal based on the gyroscope, obtaining the specific force of the gimbal based on the accelerometer, and calculating the error of the first pose according to the angular velocity and the specific force. For example, calculating the error of the first pose according to the angular velocity and the specific force can include, according to the angular velocity and the specific force, constructing an attitude error, a velocity error, and a position error of the first pose, and calculating the error of the first pose according to the attitude error, velocity error and position error.

The process at S403 can include approximating the error of the first pose to obtain the Kalman filter, obtaining a correction value through the Kalman filter by using the second pose as an observation value, and correcting the first pose according to the correction value to realize the correction of the pose of the gimbal in the vertical direction. Herein, approximating the error of the first pose can refer to removing an error term that has a small impact in the error of the first pose.

In some embodiments, as shown in FIG. 5, the gimbal consistent with the disclosure is suitable for the moving shooting at the low-velocity and short-distance, and near the ground. A measurement error model of the gyroscope can be: {tilde over (ω)}_(ib) ^(b)=ω_(ib) ^(b) +b+n _(r)  (7) wherein n_(r) denotes measurement noise of the gyroscope and is assumed to be a Gaussian white noise. b denotes a zero bias of the gyroscope and is assumed to be a random walk process in a form of {dot over (b)}=n_(w), and n_(w) denotes Gaussian white noise. {circumflex over (b)} denotes a zero-bias estimation of the gyroscope. If {circumflex over (b)} is a constant zero-bias, then {circumflex over ({dot over (b)})}=0. According to the measurement error model of the gyroscope, it can be obtained that ω_(ib) ^(b)={tilde over (ω)}_(ib) ^(b)−b−n_(r) and {circumflex over (ω)}_(ib) ^(b)={tilde over (ω)}_(ib) ^(b)−{circumflex over (b)}.

The zero bias error of the gyroscope can be defined as: ε=b−{circumflex over (b)}  (8)

Thus, {dot over (ε)}={dot over (b)}−{circumflex over ({dot over (b)})}=n_(w).

A state quantity of the attitude solution can be defined as x=[q_(b) ^(n) b]^(T). According to the quaternion differential formula and the measurement error model of the gyroscope, it can be obtained:

$\begin{bmatrix} {\overset{.}{q}}_{n}^{b} \\ \overset{.}{b} \end{bmatrix} = {\begin{bmatrix} {\frac{1}{2}{\Omega\left( {{\overset{\sim}{\omega}}_{ib}^{b} - b - n_{r}} \right)}{\hat{q}}_{n}^{b}} \\ 0 \end{bmatrix} + \begin{bmatrix} 0 \\ n_{w} \end{bmatrix}}$

For the state estimator:

$\begin{bmatrix} {\overset{.}{\hat{q}}}_{n}^{b} \\ \overset{.}{\hat{b}} \end{bmatrix} = \begin{bmatrix} {\frac{1}{2}{\Omega\left( {{\overset{\sim}{\omega}}_{ib}^{b} - \hat{b}} \right)}{\hat{q}}_{n}^{b}} \\ 0 \end{bmatrix}$

Combined with the above formula, a calculation process of an attitude error formula can be as follows. An error quaternion caused by {circumflex over (q)}_(b) ^(n) can be denoted by δq_(b′) ^(b), and according to the quaternion multiplication, it can be obtained: q _(n) ^(b) =δq _(b′) ^(b) ⊗{circumflex over (q)} _(n) ^(b)  (9)

Perform a time derivative on Formula (9), and calculate a state equation of the system according to the attitude: δ{dot over (q)} _(b′) ^(b)≈½(ω_(ib) ^(b) ⊗δq _(b′) ^(b) −δq _(b′) ^(b)⊗{circumflex over (ω)}_(ib) ^(b))  (10)

Considering the measurement error model (7) of the gyroscope, Formula (10) can be written as:

${\delta\;{\overset{.}{q}}_{b^{\prime}}^{b}} = {{{\frac{1}{2}\left( {{{{\hat{\omega}}_{ib}^{b} \otimes \delta}\; q_{b^{\prime}}^{b}} - {\delta\;{q_{b^{\prime}}^{b} \otimes {\hat{\omega}}_{ib}^{b}}}} \right)} - {\frac{1}{2}{\left( {ɛ + n_{r}} \right) \otimes \delta}\; q_{b^{\prime}}^{b}}} \approx {{{{\frac{1}{2}\begin{bmatrix} 0_{1 \times 3} & 0 \\ {{- 2}\left\lfloor {{\hat{\omega}}_{ib}^{b} \times} \right\rfloor} & 0_{3 \times 1} \end{bmatrix}} \cdot \delta}\; q_{b^{\prime}}^{b}} - {\frac{1}{2}\begin{bmatrix} 0 \\ {ɛ - n_{r}} \end{bmatrix}}}}$

The attitude angle offset of the {b′} system relative to the {b} system is denoted as ϕ. Consider ϕ to be a small angle, the approximate expression of δq_(b′) ^(b) can be

${{\delta\; q_{b^{\prime}}^{b}} = \left\lbrack {1\mspace{14mu}\frac{\phi}{2}} \right\rbrack^{T}},$ which can be inserted into Formula (11) to obtain: {dot over (ϕ)}=−{circumflex over (ω)}_(ib) ^(b) ×ϕ−ε−n _(r)  (12)

The state equation of attitude error can be:

$\begin{matrix} {\begin{bmatrix} \overset{.}{\phi} \\ \overset{.}{ɛ} \end{bmatrix} = {{\begin{bmatrix} {- \left\lfloor {{\hat{\omega}}_{ib}^{b} \times} \right\rfloor} & {- I_{3 \times 3}} \\ 0_{3 \times 3} & 0_{3 \times 3} \end{bmatrix} \cdot \begin{bmatrix} \phi \\ ɛ \end{bmatrix}} + {\begin{bmatrix} {- I_{3 \times 3}} & 0_{3 \times 3} \\ 0_{3 \times 3} & I_{3 \times 3} \end{bmatrix} \cdot \begin{bmatrix} n_{r} \\ n_{w} \end{bmatrix}}}} & (13) \end{matrix}$

A calculation process of the velocity error can be as follows. According to the specific force formula, an error-free ideal velocity value can be determined according to the following differential formula: {dot over (V)} ^(n) =C _(b) ^(n) f ^(b)−(2ω_(ie) ^(n)+ω_(en) ^(n))×V ^(n) +g ^(n) where g^(n) represents an acceleration of gravity in the navigation coordinate system. The gimbal consistent with the disclosure is suitable for the moving shooting at low-velocity and short-distance, and near the ground. Thus, ω_(ie) ^(n) and ω_(en) ^(n) can be approximately ignored, such that the approximate velocity error calculation formula can be as follows: δ{dot over (V)} ^(n)=−ϕ^(n) ×{circumflex over (f)} ^(n)+∇^(n)  (14) wherein ∇^(n) denotes a projection of an accelerometer zero offset in the navigation coordinate system.

A calculation process of the position error can be as follows. Unlike conventional integrated navigation using the latitude and longitude to represent the position, the method consistent with the disclosure can use the visual navigation for position measurement, and is suitable for the moving shooting at low-velocity and short-distance, and near the ground. Therefore, a position error formula in the form of distance can be as Formula (15): δ{dot over (P)} ^(n) =δV ^(n)  (15)

Combining the calculation formulas of the attitude error, velocity error, and position error, the error of the first pose (i.e., the error formula of the integrated navigation system) can be obtained as: {dot over (X)}=FX+Gw  (16)

The system state quantity X can be: X=[ϕ_(x) ^(b)ϕ_(y) ^(b)ϕ_(z) ^(b) δV _(x) ^(n) δV _(y) ^(n) δV _(z) ^(n) δP _(x) ^(n) δP _(y) ^(n) δP _(z) ^(n)ε_(x)ε_(y)ε_(z)∇_(x)∇_(y)∇_(z)]^(T)

A state transition matrix F can be:

$F = \begin{bmatrix} {- \left\lfloor {{\hat{\omega}}_{ib}^{b} \times} \right\rfloor} & 0_{3 \times 3} & 0_{3 \times 3} & {- I_{3 \times 3}} & 0_{3 \times 3} \\ \left\lfloor {{\hat{f}}_{n} \times} \right\rfloor & 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} & C_{b}^{n} \\ 0_{3 \times 3} & I_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} \\ 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} \\ 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} \end{bmatrix}$ where └{circumflex over (ω)}_(ib) ^(b)×┘ is anti-symmetric matrix of {circumflex over (ω)}_(ib) ^(b), └{circumflex over (f)}^(n)Δ┘ is anti-symmetric matrix of {circumflex over (f)}^(n).

A system noise vector w can be: w=[n _(r) n _(w) n _(a)]^(T) where n_(r) denotes the noise of the gyroscope, n_(w) denotes the random walk noise of the gyroscope, and n_(a) denotes noise of the accelerometer.

A noise distribution matrix G can be:

$G = \begin{bmatrix} I_{3 \times 3} & 0_{3 \times 3} & I_{3 \times 3} \\ 0_{3 \times 3} & 0_{3 \times 3} & C_{b}^{n} \\ 0_{3 \times 3} & 0_{3 \times 3} & 0_{3 \times 3} \\ 0_{3 \times 3} & I_{3 \times 3} & 0_{3 \times 3} \\ 0_{3 \times 3} & 0_{3 \times 3} & I_{3 \times 3} \end{bmatrix}$

Perform discretization and first-order approximation on Formula (16) to obtain a discretized error calculation formula for the first pose, and design the Kalman filter using the discretized error calculation formula for the first pose.

In some embodiments, the vision device 2 can include the visual inertial odometer. In some embodiments, the observation value of the Kalman filter described above can be designed according to an output result of the visual inertial odometer. The specific design process can be as follows.

The reference attitude output by the visual inertial odometer is denoted as q _(c) ^(n), and the cosine matrix of the reference direction is denoted as C _(n) ^(c). In some embodiments, a heading reference output by the visual inertial odometer can be used as a heading observation of the integrated navigation system, and it is considered that the {b} series and the {c} series are completely aligned.

Assume positive unit vectors of the three axes of the navigation coordinate system {n} are:

${v_{x}^{n} = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}},{v_{y}^{n} = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}},{v_{z}^{n} = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}}$

The projection of a heading reference vector in the {b} system (e.g., a reference vector in x direction of the {b} system) can be: v _(x) ^(b) =C _(n) ^(c) v _(x) ^(n)  (17)

According to the specific force formula, a unit projection of the gravity reference vector in the {b} system (e.g., the reference vector in z direction of the {b} system), when the gimbal is completely still, can be:

$\begin{matrix} {v_{z}^{b} = \frac{{\hat{f}}^{b}}{{\hat{f}}^{b}}} & (18) \end{matrix}$

According to the orthogonal relationship of the coordinate system, the reference vector v_(y) ^(b) in y direction of the {b} system can be obtained from v_(z) ^(b) and v_(x) ^(b). The direction cosine matrix of the reference attitude constructed by v_(x) ^(b), v_(x) ^(b), and v_(x) ^(b) can be as follows: C _(n) ^(b)=[v _(x) ^(b) v _(y) ^(b) v _(z) ^(b)]  (19)

The reference attitude quaternion q _(n) ^(b) can be obtained from C _(n) ^(b), and the attitude correction quaternion can be:

$\begin{matrix} {{\delta\;\overset{\_}{q}} = {{{\overset{\_}{q}}_{n}^{b} \otimes {\hat{q}}_{b}^{n}} = \left\lbrack {\cos\frac{\overset{\_}{\phi}}{2}\mspace{14mu}\frac{\overset{\_}{\phi}}{\overset{\_}{\phi}}\sin\frac{\overset{\_}{\phi}}{2}} \right\rbrack^{T}}} & (20) \end{matrix}$

{circumflex over (q)}_(b) ^(n) in Formula (20) is a latest estimation of the attitude quaternion. Under the condition of small angle, according to the above formula, the observation of the attitude correction can be obtained as follows: ϕ=[2δ q ₁2δ q ₂2δ q ₃]^(T)  (21) where δq ₁, δq ₂, and δq ₃ are the error quaternion.

The observation formula for attitude correction can be: Z _(ϕ) =ϕ=H _(ϕ) X+v _(ϕ)  (22) where v_(ϕ) denotes attitude observation noise. H_(ϕ)=[I_(3×3) 0_(3×12)] and v_(ϕ)=[v_(ϕx) v_(ϕy) v_(ϕz)]^(T).

Using Formula (22) as the attitude observation formula of the Kalman filter, the attitude correction value {circumflex over (ϕ)} output by the Kalman filter can be used to correct the updated attitude value of the gimbal obtained by Formula (4), and the corrected attitude output can be obtained to realize the correction of the attitude of the gimbal.

A velocity and position vector [V_(nc) ^(n) P_(nc) ^(n)]^(T) output by the visual inertial odometer can include the velocity and position of the camera coordinate system {c} relative to the {n} system, and a velocity observation and a position observation of the {b} system are needed to be obtained. Mechanical errors are not considered herein. During the rotation of the axis arm 4, a parallelogram mechanism of the axis arm 4 can ensure that an end plane of the axis is always parallel to the bottom surface of the base 32. Therefore, there is only translational motion between the {b} system and the {p} system.

According to the output of the visual inertial odometer and a geometric and dynamic transmission relationship of the mechanical structure, the reference velocity V_(r) ^(n) and reference position P_(r) ^(n) of the axis arm 4 can be solved as follows: V _(r) ^(n) =C _(p) ^(n) V _(r) ^(p) =C _(p) ^(n)(V _(nc) ^(p) +ΔV ^(p))=V _(nc) ^(n) +C _(p) ^(n) ΔV ^(p)  (23) P _(r) ^(n) =C _(p) ^(n) P _(r) ^(p) =C _(p) ^(n)(P _(nc) ^(p) +ΔP ^(p))=P _(nc) ^(n) +C _(p) ^(n) ΔP ^(p)  (24) where C_(p) ^(n) denotes the direction cosine matrix from the {p} system to the {n} system, ΔP^(p) is a projection of a relative position vector from O_(b) to O_(c) in the {p} system, and ΔV^(p) is a projection of a relative velocity vector from O_(b) to O_(c) in the {p} system.

Denote [O_(x) O_(y) O_(z)]^(T) as a position offset vector from O_(c) to O_(p) in the {p} system. Denote the joint angle of the axis arm 4 as α, when the axis arm 4 is parallel to the base 32, α=0, and define the counterclockwise direction as the positive direction. Define the length L of the axis arm 4 as the length from the rotation center line of the axis arm 4 to the end of the axis (i.e., the end of the axis arm 4 connected to the gimbal). ΔP^(p) can be calculated according to the following formula:

$\begin{matrix} {{\Delta\; P^{p}} = {\begin{bmatrix} {\Delta\; P_{x}^{p}} \\ {\Delta\; P_{y}^{p}} \\ {\Delta\; P_{z}^{p}} \end{bmatrix} = \begin{bmatrix} {{- O_{x}} + {L\mspace{14mu}\cos\mspace{14mu}\alpha}} \\ O_{y} \\ {O_{z} + {L\mspace{14mu}\sin\mspace{14mu}\alpha}} \end{bmatrix}}} & (25) \end{matrix}$

ΔV^(p) is calculated according to the following formula:

$\begin{matrix} {{\Delta\; V^{p}} = {\begin{bmatrix} {\Delta\; V_{x}^{p}} \\ {\Delta\; V_{y}^{p}} \\ {\Delta\; V_{z}^{p}} \end{bmatrix} = \begin{bmatrix} {L\;\overset{.}{\alpha}\mspace{14mu}\cos\mspace{14mu}\alpha} \\ 0 \\ {{- L}\;\overset{.}{\alpha}\mspace{14mu}\sin\mspace{14mu}\alpha} \end{bmatrix}}} & (26) \end{matrix}$

According to Formulas (23) and (24), the reference velocity vector V_(r) ^(n) and reference position vector P_(r) ^(n) can be obtained, the velocity observation formula and position observation formula of the integrated navigation system can be obtained as: Z _(V) ={circumflex over (V)} ^(n) −V _(r) ^(n) =H _(V) X+v _(V)  (27) Z _(P) ={circumflex over (P)} ^(n) −P _(r) ^(n) =H _(P) X+v _(P)  (28) where H_(ϕ)=[0_(3×3) I_(3×3) 0_(3×9)], v_(V)=[v_(Vx) v_(Vy) v_(Vz)]^(T), H_(P)=[0_(3×6) I_(3×3) 0_(3×6)], v_(P)=[v_(Px) v_(Py) v_(Pz)]^(T), v_(V) is the velocity observation noise, and H_(P) is the position observation noise.

Formula (27) can be used as the velocity observation formula of the Kalman filter, a velocity correction value can be output through the Kalman filter, and the updated speed value obtained by the velocity correction value and Formula (5) can be corrected to obtain a corrected velocity output, thereby realizing the correction of the velocity of the gimbal. Formula (28) can be used as the position observation formula of the Kalman filter, the position correction value can be output through the Kalman filter, and the updated position value obtained by the position correction value and Formula (6) can be corrected to obtain a corrected position output, thereby realizing the correction of the position of the gimbal.

The method consistent with the disclosure can adopt the inertial-vision integrated navigation mode, and correct the second pose obtained by the vision device 2 based on the first pose obtained by the IMU 1 to obtain the pose satisfying the requirements of the control bandwidth and accuracy. The inertial-visual integrated navigation mode consistent with the present disclosure is not interfered by electric current and magnetic field, and can be suitable for various indoor and outdoor environments.

Referring again to FIGS. 1 to 3, the present disclosure further provides the gimbal pose correction device. The device may include the vertical compensation device connected to the gimbal, the vision device 2 arranged at the vertical compensation device, and the IMU 1 arranged at the vertical compensation device. The vertical compensation device can be configured to compensate for the movement of the gimbal in the vertical direction, and the vision device 2 and the IMU 1 can be electrically connected to the vertical compensation device.

The vertical compensation device can be configured to obtain the first pose of the gimbal based on the IMU 1, obtain the second pose of the vertical compensation device based on the vision device 2, and correct the first pose according to the second pose.

The vertical compensation device further includes the main body 3 and the axis arm 4 connected to the gimbal. The axis arm 4 can rotate to compensate for the movement of the gimbal in the vertical direction. The IMU 1 can be arranged at the axis arm 4, and the vision device 2 can be arranged at the main body 3.

The vision device 2 can include the visual odometer, and the second pose can include the velocity and position of the vertical compensation device. The vision device 2 can includes the visual inertial odometer, and the second pose can include the velocity, position, and attitude of the vertical compensation device.

The vertical compensation device can include the axis arm 4 connected to the gimbal. The axis arm 4 can rotate to compensate for the movement of the gimbal in the vertical direction. The angular velocity sensor 6 can be arranged at the axis arm 4. The vertical compensation device can be configured to obtain the joint angle of the axis arm 4 based on the angular velocity sensor 6.

The first pose can include the velocity of the gimbal. The vertical compensation device can be configured to perform the coordinate conversion on the reference velocity of the vertical compensation device output by the vision device 2 according to the joint angle, and obtain the velocity of the vertical compensation device.

The first pose can include the position of the gimbal. The vertical compensation device can be configured to perform the coordinate conversion on the reference position of the vertical compensation device output by the vision device 2 according to the joint angle, and obtain the position of the vertical compensation device.

The vertical compensation device can be configured to construct the reference direction cosine matrix of the reference attitude based on the reference attitude output by the visual inertial odometer, and obtain the attitude of the vertical compensation device according to the reference direction cosine matrix.

The vertical compensation device can be configured to obtain the attitude correction value of the vertical compensation device according to the reference direction cosine matrix, and obtain the attitude of the vertical compensation device according to the attitude correction value.

The first pose can include the velocity, position, and attitude of the gimbal.

The IMU 1 can include the gyroscope and the accelerometer. The vertical compensation device can be configured to obtain the angular velocity of the gimbal based on the gyroscope, obtain the specific force of the gimbal based on the accelerometer, and calculate the attitude, velocity, and position of the gimbal according to the angular velocity and the specific force.

The vertical compensation device can be configured to design the attitude update formula according to the angular velocity and the specific force, and update the attitude of the gimbal according to the attitude update formula.

The vertical compensation device can be configured to design the velocity update formula according to the angular velocity and the specific force, and update the velocity of the gimbal according to the velocity update formula.

The vertical compensation device can be configured to design the position update formula according to the angular velocity and the specific force and update the position of the gimbal according to the position update formula.

The IMU 1 can include the gyroscope and the accelerometer. The vertical compensation device can be configured to obtain the angular velocity of the gimbal based on the gyroscope, obtain the specific force of the gimbal based on the accelerometer, and calculate the error of the first pose according to the angular velocity and the specific force.

The vertical compensation device can be configured to construct the attitude error, velocity error, and position error of the first pose according to the angular velocity and the specific force, and calculate the error of the first pose according to the attitude error, velocity error, and position error.

The vertical compensation device can be configured to approximate the error of the first pose to obtain the Kalman filter, obtain the correction value through the Kalman filter by using the second pose as the observation value, and correct the first pose according to the correction value.

For simplification purposes, detailed descriptions of the operations of exemplary devices are omitted and references can be made to the descriptions of the exemplary methods. The devices described above are merely exemplary. The units described as separate components may or may not be physically separate, and a component shown as a unit may or may not be a physical unit. That is, the units may be located in one place or may be distributed over a plurality of network elements. Some or all of the components may be selected according to the actual needs to achieve the object of the present disclosure. Those skilled in the art can understand and implement without creative work.

The terms “first,” “second,” or the like in the specification, claims, and the drawings of the present disclosure are merely used to distinguish similar elements, and are not intended to describe a specified order or a sequence. In addition, the terms “including,” “comprising,” and variations thereof herein are open, non-limiting terminologies, which are meant to encompass a series of steps of processes and methods, or a series of units of systems, apparatuses, or devices listed thereafter and equivalents thereof as well as additional steps of the processes and methods or units of the systems, apparatuses, or devices.

The gimbal pose correction method and device consistent with the disclosure are described in detail above. It is intended that the disclosed embodiments be considered as exemplary only and not to limit the scope of the disclosure. Changes, modifications, alterations, and variations of the above-described embodiments may be made by those skilled in the art within the scope of the disclosure. 

What is claimed is:
 1. A gimbal pose correction method comprising: obtaining a first pose of a gimbal based on an Inertial Measurement Unit (IMU) arranged at a vertical compensation device, the vertical compensation device being configured to be coupled to the gimbal and compensate for movement of the gimbal in a vertical direction; obtaining a second pose of the vertical compensation device based on a vision device arranged at the vertical compensation device; and correcting the first pose according to the second pose.
 2. The method of claim 1, wherein: the vertical compensation device includes a main body and an axis arm configured to be connected to the gimbal; the IMU is arranged at the axis arm; and the vision device is arranged at the main body.
 3. The method of claim 1, wherein: the vision device includes a visual odometer; and the second pose includes a velocity and a position of the vertical compensation device.
 4. The method of claim 3, wherein: the vertical compensation device includes an axis arm configured to be connected to the gimbal and compensate for the movement of the gimbal in the vertical direction via rotation; and an angular velocity sensor is arranged at the axis arm; the method further comprising, before obtaining the second pose: obtaining a joint angle of the axis arm based on the angular velocity sensor.
 5. The method of claim 4, wherein: the first pose includes a velocity of the gimbal; and obtaining the second pose includes performing coordinate conversion on a reference velocity of the vertical compensation device output by the vision device according to the joint angle to obtain a velocity of the vertical compensation device.
 6. The method of claim 4, wherein: the first pose includes a position of the gimbal; and obtaining the second pose includes performing coordinate conversion on a reference position of the vertical compensation device output by the vision device according to the joint angle to obtain a position of the vertical compensation device.
 7. The method of claim 1, wherein: the vision device includes a visual inertial odometer; and the second pose includes a velocity, a position, and an attitude of the vertical compensation device.
 8. The method of claim 7, wherein obtaining the second pose includes: based on a reference attitude output by the visual inertial odometer, constructing a reference direction cosine matrix of the reference attitude; and obtaining an attitude of the vertical compensation device according to the reference direction cosine matrix.
 9. The method of claim 8, wherein obtaining the attitude of the vertical compensation device includes: obtaining an attitude correction value of the vertical compensation device according to the reference direction cosine matrix; and obtaining the attitude of the vertical compensation device according to the attitude correction value.
 10. The method of claim 1, wherein the first pose includes a velocity, a position, and an attitude of the gimbal.
 11. The method of claim 10, wherein: the IMU includes a gyroscope and an accelerometer; obtaining the first pose includes: obtaining an angular velocity of the gimbal based on the gyroscope; obtaining a specific force of the gimbal based on the accelerometer; and calculating the attitude, the velocity, and the position of the gimbal according to the angular velocity and the specific force.
 12. The method of claim 11, wherein calculating the attitude, the velocity, and the position of the gimbal includes: designing an attitude update formula according to the angular velocity and the specific force; and updating the attitude of the gimbal according to the attitude update formula.
 13. The method of claim 11, wherein calculating the attitude, the velocity, and the position of the gimbal includes: designing a velocity update formula according to the angular velocity and the specific force; and updating the velocity of the gimbal according to the velocity update formula.
 14. The method of claim 11, wherein calculating the attitude, the velocity, and the position of the gimbal includes: designing a position update formula according to the angular velocity and the specific force; and updating the position of the gimbal according to the position update formula.
 15. The method of claim 10, wherein: the IMU includes a gyroscope and an accelerometer; obtaining the first pose of the gimbal includes: obtaining an angular velocity of the gimbal based on the gyroscope; obtaining a specific force of the gimbal based on the accelerometer; and calculating an error of the first pose according to the angular velocity and the specific force.
 16. The method of claim 15, wherein calculating the error of the first pose includes: constructing an attitude error, a velocity error, and a position error of the first pose according to the angular velocity and the specific force; and calculating the error of the first pose according to the attitude error, the velocity error, and the position error.
 17. The method of claim 15, wherein correcting the first pose according to the second pose includes: approximating the error of the first pose to obtain a Kalman filter; obtaining a correction value through the Kalman filter by using the second pose as an observation value; and correcting the first pose according to the correction value.
 18. A gimbal pose correction device comprising: a vertical compensation device configured to be connected to a gimbal and compensate for movement of the gimbal in a vertical direction; a vision device arranged at and electrically coupled to the vertical compensation device; and an Inertial Measurement Unit (IMU) arranged at and electrically coupled to the vertical compensation device; wherein the vertical compensation device is further configured to: obtain a first pose of the gimbal based on the IMU; obtain a second pose of the vertical compensation device based on the vision device; and correct the first pose according to the second pose.
 19. The device of claim 18, wherein: the vertical compensation device includes a main body and an axis arm configured to be connected to the gimbal, the axis arm being configured to rotate to compensate for the movement of the gimbal in the vertical direction; the IMU is arranged at the axis arm; and the vision device is arranged at the main body.
 20. The device of claim 18, wherein: the vision device includes a visual odometer; and the second pose includes a velocity and a position of the vertical compensation device. 